package com.jr.service.impl;

import com.jr.dao.UserDao;
import com.jr.dao.impl.UserDaoImpl;
import com.jr.entry.User;
import com.jr.service.UserService;
import sun.applet.Main;

public class UserServiceImpl implements UserService {
   UserDaoImpl userDao=new UserDaoImpl();
    @Override
    public boolean login(String account, String password) {

        return  userDao.selectUserByAccountAndPassword(account, password);
    }

    @Override
    public boolean updateUser(String idcardName, String idcardNo, String account,String name) {
        return userDao.updateUser(idcardName, idcardNo,account,name);
    }

    @Override
    public User selectUserByAccount(String account) {
         return userDao.selectUserByAccount(account);
    }

    @Override
    public boolean updateUserEnterpriseIdAndName(String account, String enterpriseId, String enterpriseName) {
         return userDao.updateUserEnterpriseIdAndName(account,enterpriseId,enterpriseName);
    }



}
